package com.eboss2.sbs.http;

import android.content.Context;

import com.eboss2.sbs.config.Config;

import java.util.Map;

public class API {

//	//登录接口
//	public static final String LOGON = Config.BasePath + "index.php/api/login";
//	//首页信息
//	public static final String HOMEPAGE = Config.BasePath + "index.php/api/homepage";
//	//积分活动列表
//	public static final String POINT_LIST = Config.BasePath + "index.php/api/pointList";
//	//积分活动详情
//	public static final String POINT_DETAIL = Config.BasePath + "index.php/api/pointDetail";
//	//优惠券活动列表
//	public static final String COUPON_LIST = Config.BasePath + "index.php/api/couponList";
//	//优惠券活动详情
//	public static final String COUPON_DETAIL = Config.BasePath + "index.php/api/couponDetail";
//	//会员消费数据
//	public static final String BUSINESSCOST_LIST = Config.BasePath + "index.php/api/businessCostList";
//	//店铺交易数据
//	public static final String SHOPCOST_LIST = Config.BasePath + "index.php/api/shopCostList";
//	//积分核销数据
//	public static final String POINTUSED_LIST = Config.BasePath + "index.php/api/pointUsed";
//	//优惠券核销数据
//	public static final String COUPONUSED_LIST = Config.BasePath + "index.php/api/couponUsed";
//	//收款账户信息
//	public static final String ACCOUNT_INFO = Config.BasePath + "index.php/api/account";
//	
//	//交易详情
//	public static final String ORDER_DETAIL = Config.BasePath + "index.php/api/orderDetail";
//	//我的商博士
//	public static final String MY_EBOSS_INFO = Config.BasePath + "index.php/api/data";
//	//消息通知列表
//	public static final String MESSAGE_LIST = Config.BasePath + "index.php/api/messageList";
//	//消息通知详情
//	public static final String MESSAGE_DETAIL = Config.BasePath + "index.php/api/messageDetail";
//	//智能终端列表
//	public static final String INTEL_TERMINAL_LIST = Config.BasePath + "index.php/api/intelTerminalList";
//	//智能终端详情
//	public static final String INTEL_TERMINAL_DETAIL = Config.BasePath + "index.php/api/intelTerminalDetail";
//	//二维码列表
//	public static final String BARCODE_LIST = Config.BasePath + "index.php/api/barCodeList";
//	//二维码按照月份统计
//	public static final String BARCODE_MONTH = Config.BasePath + "index.php/api/barCodeMonth";
//	//二维码按照日份统计
//	public static final String BARCODE_DAY = Config.BasePath + "index.php/api/barCodeDay";
//	
//	//FEEDBACK
//	public static final String FEEDBACK_SUBMIT = Config.BasePath + "index.php/api/optionFeedback";
//	
//	//激活后上报
//	public static final String ACTIVATE_SUBMIT = Config.BasePath + "index.php/api/feedback";
//	//会员优惠信息
//	public static final String MEMBER_BENIFIT = Config.BasePath + "index.php/api/benefits";
//	//计算会员交易金额
//	public static final String CACULATE_MONEY = Config.BasePath + "index.php/api/tranMoney";
//	//交易结果上传
//	public static final String TRADE_LOG_UPLOAD = Config.BasePath + "index.php/api/tranUpload";
//	
//	//会员增长数据报表
//	public static final String D_MEMBER_INCREASE = Config.BasePath + "";
//	//会员增长数据报表_详情
//	public static final String D_MEMBER_INCREASE_DETAIL = Config.BasePath + "";
//	//会员消费数据报表
//	public static final String D_MEMBER_CONSUME = Config.BasePath + "";
//	//会员消费数据报表_详情
//	public static final String D_MEMBER_CONSUME_DETAIL = Config.BasePath + "";
//	//店铺收银数据报表
//	public static final String D_STORE_CONSUME = Config.BasePath + "";
//	//店铺收银数据报表_详情
//	public static final String D_STORE_CONSUME_DETAIL = Config.BasePath + "";
//	//积分发放核销报表
//	public static final String D_POINT_ISSUE = Config.BasePath + "";
//	//积分发放核销报表_详情
//	public static final String D_POINT_ISSUE_DETAIL = Config.BasePath + "";
//	//优惠券领取核销报表
//	public static final String D_COUPON_ISSUE = Config.BasePath + "";
//	//优惠券领取核销报表_详情
//	public static final String D_COUPON_ISSUE_DETAIL = Config.BasePath + "";
	
	///////////////////////////////////////////
	
	public static final String UPGRADE = "http://agent.ebank007.com/api/index/getVersion";
	
	//登录接口
	public static final String LOGON = "login";
	//首页信息
	public static final String HOMEPAGE = "homepage";
	
	//积分活动列表
	public static final String POINT_LIST = "pointList";
	//积分活动详情
	public static final String POINT_DETAIL = "pointDetail";
	//积分活动商铺详情
	public static final String POINT_ACTIVATE_SHOP_DETAIL = "pointShopDetail";
	
	//优惠券活动列表
	public static final String COUPON_ACTIVATE_LIST = "couponActivateList";
	//优惠券活动详情
	public static final String COUPON_ACTIVATE_DETAIL = "couponActivateDetail";
	//优惠券活动商铺详情
	public static final String COUPON_ACTIVATE_SHOP_DETAIL = "couponShopDetail";
	
	//优惠券列表
	public static final String COUPON_LIST = "couponList";
	//优惠券详情
	public static final String COUPON_DETAIL = "couponDetail";
	//会员消费数据
	public static final String BUSINESSCOST_LIST = "businessCostList";
	//店铺交易数据
	public static final String SHOPCOST_LIST = "shopCostList";
	//积分核销数据
	public static final String POINTUSED_LIST = "pointUsed";
	//优惠券核销数据
	public static final String COUPONUSED_LIST = "couponUsed";
	//收款账户信息
	public static final String ACCOUNT_INFO = "account";
	
	//交易详情
	public static final String ORDER_DETAIL = "orderDetail";
	//我的商博士
	public static final String MY_EBOSS_INFO = "data";
	//消息通知列表
	public static final String MESSAGE_LIST = "messageList";
	//消息通知详情
	public static final String MESSAGE_DETAIL = "messageDetail";
	//删除消息
	public static final String MESSAGE_DELETE = "messageDelete";
	
	//智能终端列表
	public static final String INTEL_TERMINAL_LIST = "intelTerminalList";
	//智能终端详情
	public static final String INTEL_TERMINAL_DETAIL = "intelTerminalDetail";
	//二维码列表
	public static final String BARCODE_LIST = "barCodeList";
	//二维码按照月份统计
	public static final String BARCODE_MONTH = "barCodeMonth";
	//二维码按照日份统计
	public static final String BARCODE_DAY = "barCodeDay";
	
	//修改密码
	public static final String MODIFY_PASSWORD = "resetPassword";
	
	//获得收款二维码图片链接
	public static final String PAY_BARCORD = "payBarcode";
	
	//意见和反馈
	public static final String FEEDBACK_SUBMIT = "optionFeedback";
	
	//激活后上报
	public static final String ACTIVATE_SUBMIT = "feedback";
	//会员优惠信息
	public static final String MEMBER_BENIFIT = "benefits";
	//计算会员交易金额
	public static final String CACULATE_MONEY = "tranMoney";
	//交易结果上传
	public static final String TRADE_LOG_UPLOAD = "tranUpload";
	//钱包支付
	public static final String QB_PAY = "qbPay";

	//实体卡支付
	public static final String IC_CARD_PAY = "icCardPayApp";

	//取消订单
	public static final String ORDER_CANCEL = "orderCancel";

	//获取扫码支付方式
	public static final String QUERY_SCAN_TYPE = "queryScanType";
	
	
	//会员增长数据报表
	public static final String D_MEMBER_INCREASE = Config.BasePath + "";
	//会员增长数据报表_详情
	public static final String D_MEMBER_INCREASE_DETAIL = Config.BasePath + "";
	//会员消费数据报表
	public static final String D_MEMBER_CONSUME = Config.BasePath + "";
	//会员消费数据报表_详情
	public static final String D_MEMBER_CONSUME_DETAIL = Config.BasePath + "";
	//店铺收银数据报表
	public static final String D_STORE_CONSUME = Config.BasePath + "";
	//店铺收银数据报表_详情
	public static final String D_STORE_CONSUME_DETAIL = Config.BasePath + "";
	//积分发放核销报表
	public static final String D_POINT_ISSUE = Config.BasePath + "";
	//积分发放核销报表_详情
	public static final String D_POINT_ISSUE_DETAIL = Config.BasePath + "";
	//优惠券领取核销报表
	public static final String D_COUPON_ISSUE = Config.BasePath + "";
	//优惠券领取核销报表_详情
	public static final String D_COUPON_ISSUE_DETAIL = Config.BasePath + "";
	
	//钱包首页
	public static final String WALLET_MAIN = "walletMain";
	//钱包提现账号信息
	public static final String WALLET_DRAW_ACCOUNT = "walletDrawAccountInfo";
	//钱包账号信息
	public static final String WALLET_ACCOUNT = "walletAccountInfo";
	//钱包提现账号信息
	public static final String WALLET_DRAW_SUBMIT = "walletDrawSubmit";
	//钱包提现Log
	public static final String WALLET_DRAW_LOG = "walletDrawLog";
	//钱包提现Log Detail
	public static final String WALLET_DRAW_LOG_DETAIL = "walletDrawLogDetail";
	
//	public static void uploadPic(Context context, File img, int termianlId, HttpCallback callback) throws FileNotFoundException {
//		RequestParams params = new RequestParams();
//		params.put("img", img);
//		new HttpRequest(context, callback).post(TERMINAL_UPLOAD_IMAGE + termianlId, params);
//	}
//	
//	//收钱吧   微信   商户上传图片到资料库
//	public static void myFileUpload_Wosai_Weixin(Context context, int id, File img, HttpCallback callback) throws FileNotFoundException {
//		RequestParams params = new RequestParams();
//		params.put("img", img);
//		new HttpRequest(context, callback).post(Config.URL_MYFILE_UPLOAD_WOSAI_WEIXIN+id, params);
//	}
	
	@SuppressWarnings("rawtypes")
	public static void http_post(Context context, String url, Map<String, Object> params, HttpCallback callback) {
		new HttpRequest(context, callback).post(url, params);
	}
	
	public static void http_post_2(Context context, String url, Map<String, Object> params, HttpCallback callback) {
		new HttpRequest2(context, callback).post(url, params);
	}
	
//	@SuppressWarnings("rawtypes")
//	public static void http_post(Context context, String url, HttpCallback callback) {
//		new HttpRequest(context, callback).post(url);
//	}
	
}
